#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

void* my_memcpy(void* s1, const void* s2,size_t count)
{
	void* ret = s1;
	while (count)
	{
		*(char*)s1 = *(char*)s2;
		s1 = (char*)s1 + 1;
		s2 = (char*)s2 + 1;
		count--;
	}
	return ret;
}
int main()
{
	int arr1[10] = { 0 };
	int arr2[] = { 3,4,5,6,7,8,9 };
	my_memcpy(arr1, arr2, 20);
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr1[i]);
	}
	return 0;
}